<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 公共样式 -->
    <link rel="stylesheet" href="styles/common.css">
    <!-- 自定义样式 -->
    <link rel="stylesheet" href="styles/login.css">
     <!-- jquery -->
     <script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
    <title>首页</title>
</head>
<script type="text/javascript">
    ! function(e, t) { var n = t.documentElement,
    d = e.devicePixelRatio || 1;
    function i() { var e = n.clientWidth / 3.75;
        n.style.fontSize = e + "px" } if (function e() { t.body ? t.body.style.fontSize = "16px" : t.addEventListener("DOMContentLoaded", e) }(), i(), e.addEventListener("resize", i), 
        e.addEventListener("pageshow", function(e) { e.persisted && i() }), d >= 2) { var o = t.createElement("body"),
        a = t.createElement("div");
        a.style.border = ".5px solid transparent", o.appendChild(a), n.appendChild(o), 1 === a.offsetHeight && n.classList.add("hairlines"), n.removeChild(o) } }(window, document)
</script>
<body>
    <div class="main">
        <div class="close">
            <img src="images/close.png" alt="关闭">
        </div>
        <div class="head">
            <img src="images/tx.png" alt="">
        </div>
        <div class="input-group">
            <div class="username">
                <input type="text" placeholder="财富用户名">
            </div>
            <div class="password">
                <input type="password" placeholder="财富登录密码">
                <img src="images/yc.png" alt="">
            </div>
            <input class="login-btn" type="button" value="登录">
        </div>
        <div class="tips">
            <p>第三方社交账号登录</p>
            <div class="accounts">
                <img src="images/wb.png" alt="">
                <img src="images/wx.png" alt="">
                <img src="images/qq.png" alt="">
            </div>
        </div>
    </div>
    <div class="login-footer">
        <span>忘记密码</span>
        <span>快速注册</span>
    </div>
</body>
<script type="text/javascript">
    $(function() {
        $(".password>img").click(function() {
            var input = $(this).parent(".password").find("input");
            if(input.attr("type") == "text") {
                input.attr("type", "password");
                $(this).attr("src", "images/yc.png");
                return;
            }
            if(input.attr("type") == "password") {
                input.attr("type", "text");
                $(this).attr("src", "images/xs.png");
                return;
            }
        });
    })
</script>
</html>